<script setup>
// import {useRouter} from "vue-router";
//
// const router = useRouter()
//
// setTimeout(
//     () => {
//       // router.push("/user")
//       router.push({name:"user"})
//     },
//     10000
// )

</script>

<template>
  <router-link v-bind:to="{name:'home'}">Home</router-link>
  &nbsp;
  <router-link v-bind:to="{name:'user'}">User</router-link>
  &nbsp;
  <router-link v-bind:to="{name:'news',params:{ id:1}}">News</router-link>
  &nbsp;
  <!--访问子路由-->
  <router-link v-bind:to="{name:'profile', params:{name:'abc'}, }">Student Profile</router-link>
  <router-view></router-view>
</template>

<style scoped>

</style>